|
|
|
|
|
|
|
Your Own Record Movement Buttons |
|
|
|
|
|
|
|
|
Instead of using the data control to move forward and backward through the recordset, some programmers like to create their own command buttons, or maybe even menu items, to perform this movement. You can accomplish this quite easily. The first step is to make the data control invisible and then add your own command buttons with the appropriate graphics. See Figure 14.8 for an example of what these command buttons might look like. |
|
|
|
|
|
|
|
|
Figure 14.8
Record movement command buttons. |
|
|
|
|
|
|
|
|
Examples Filename: Movement.frm |
|
|
|
|
|
|
|
|
Making the Data Control Invisible |
|
|
|
|
|
|
|
|
Because youre performing all the record movement yourself, you can set the Visible property of the Employee data control to False. The control remains visible in design mode but does not display when you run the application. |
|
|
|
|
| Hide the Data Control 1. Click once on the data control to give it focus. 2. Set the Visible property to False. 3. Now move the data control off to one side of the form. |  | Once the data control is hidden you can now control the movement through the records yourself. |
|
|
|